package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.dto.AddRoleDto;
import com.sangeng.domain.dto.ChangeRoleDto;
import com.sangeng.domain.dto.UpdateRoleDto;
import com.sangeng.domain.entity.Role;
import com.sangeng.domain.vo.PageVo;

import java.util.List;

/* 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2022-08-19 19:48:57
 */
public interface RoleService extends IService<Role> {

    List<String> selectRolesByUserId(long id);

    ResponseResult<PageVo> getRoleList(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult<String> changeRoleStatus(ChangeRoleDto role);

    ResponseResult<String> deleteRoleById(List<Long> idList);

    ResponseResult<String> addRole(AddRoleDto roleDto);

    ResponseResult<String> updateRole(UpdateRoleDto roleDto);
}

